package org.dromara.system.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.system.domain.WbProjectInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 计划业务对象 wb_project_info
 *
 * @author Lion Li
 * @date 2024-04-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WbProjectInfo.class, reverseConvertGenerate = false)
public class WbProjectInfoBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 采购项目编号
     */
    @NotBlank(message = "采购项目编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String itemId;

    /**
     * 采购项目名称
     */
    @NotBlank(message = "采购项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String itemName;

    /**
     * 预计发布时间
     */
    @JsonFormat(pattern = "yyyy年MM月",timezone = "GMT+8")
    private Date estimatePublishTime;

    /**
     * 省份
     */
    @NotBlank(message = "省份不能为空", groups = { AddGroup.class, EditGroup.class })
    private String provinceName;

    /**
     * 状态0未招标1已招标
     */
    private String status;


}
